package com.ruoyi.sl.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工序对象 sl_process
 *
 * @author admin
 * @date 2024-06-05
 */
public class SlProcess extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long processId;

    /** 工序名称 */
    @Excel(name = "工序名称")
    private String processName;

    /** 编码 */
    @Excel(name = "编码")
    private String processCode;

    /** 计价 */
    @Excel(name = "计价")
    private BigDecimal processPay;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Integer processSort;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 模块ID */
    @Excel(name = "模块ID")
    private Long moduleId;

    /** 车间ID */
    @Excel(name = "车间ID")
    private Long workshopId;

    /** 大工序 */
    @Excel(name = "大工序")
    private Long gprocessId;

    /** 定量 */
    @Excel(name = "定量")
    private BigDecimal quantify;

    @Excel(name = "是否评分0评分1不评分")
    private String isBisect;

    @Excel(name = "所属车间", targetAttr = "workshopName", type = Excel.Type.EXPORT)
    private SlWorkshop workshop;

    @Excel(name = "所属模块", targetAttr = "moduleName", type = Excel.Type.EXPORT)
    private SlModule module;

    @Excel(name = "所属大工序", targetAttr = "gprocessName", type = Excel.Type.EXPORT)
    private SlGprocess gprocess;

    public String getIsBisect() {
        return isBisect;
    }

    public void setIsBisect(String isBisect) {
        this.isBisect = isBisect;
    }

    public void setProcessId(Long processId)
    {
        this.processId = processId;
    }

    public Long getProcessId()
    {
        return processId;
    }
    public void setProcessName(String processName)
    {
        this.processName = processName;
    }

    public String getProcessName()
    {
        return processName;
    }
    public void setProcessCode(String processCode)
    {
        this.processCode = processCode;
    }

    public String getProcessCode()
    {
        return processCode;
    }
    public void setProcessPay(BigDecimal processPay)
    {
        this.processPay = processPay;
    }

    public BigDecimal getProcessPay()
    {
        return processPay;
    }
    public void setProcessSort(Integer processSort)
    {
        this.processSort = processSort;
    }

    public Integer getProcessSort()
    {
        return processSort;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setModuleId(Long moduleId)
    {
        this.moduleId = moduleId;
    }

    public Long getModuleId()
    {
        return moduleId;
    }
    public void setWorkshopId(Long workshopId)
    {
        this.workshopId = workshopId;
    }

    public Long getWorkshopId()
    {
        return workshopId;
    }
    public void setGprocessId(Long gprocessId)
    {
        this.gprocessId = gprocessId;
    }

    public Long getGprocessId()
    {
        return gprocessId;
    }

    public SlWorkshop getWorkshop() {
        return workshop;
    }

    public void setWorkshop(SlWorkshop workshop) {
        this.workshop = workshop;
    }

    public SlModule getModule() {
        return module;
    }

    public void setModule(SlModule module) {
        this.module = module;
    }

    public SlGprocess getGprocess() {
        return gprocess;
    }

    public void setGprocess(SlGprocess gprocess) {
        this.gprocess = gprocess;
    }

    public BigDecimal getQuantify() {
        return quantify;
    }

    public void setQuantify(BigDecimal quantify) {
        this.quantify = quantify;
    }

    @Override
    public String toString() {
        return "SlProcess{" +
                "processId=" + processId +
                ", processName='" + processName + '\'' +
                ", processCode='" + processCode + '\'' +
                ", processPay=" + processPay +
                ", processSort=" + processSort +
                ", status='" + status + '\'' +
                ", moduleId=" + moduleId +
                ", workshopId=" + workshopId +
                ", gprocessId=" + gprocessId +
                ", quantify=" + quantify +
                ", isBisect='" + isBisect + '\'' +
                ", workshop=" + workshop +
                ", module=" + module +
                ", gprocess=" + gprocess +
                '}';
    }
}
